﻿using Ninject;
using Soundteller.Application.Facade;
using Soundteller.Phone.Components;

namespace Soundteller.Phone
{
    public static class GameFactory
    {
        private readonly static IKernel _kernel;

        static GameFactory()
        {
            var modules = Bootstrapper.Run();

            _kernel = new StandardKernel(modules.ToArray());
        }

        public static AudioComponent CreateAudioComponent()
        {
            return _kernel.Get<AudioComponent>();
        }

        public static SoundtellerComponent CreateSoundtellerComponent()
        {
            return _kernel.Get<SoundtellerComponent>();
        }
    }
}